package cn.kilo.infrastructure.persistent.dao;

import cn.kilo.domain.model.order.entity.OrderEntity;
import cn.kilo.domain.model.order.entity.StaffEntity;
import cn.kilo.domain.model.order.res.DepartmentRes;
import cn.kilo.infrastructure.persistent.po.Department;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

import java.util.List;

/**
 * @author kilok
 */
@Mapper
public interface IDepartmentDao {
    List<DepartmentRes> getDepartment();

    Department getDepartmentAndFloor(@Param("department") String ridgepole);

    Department getGuardStaff(@Param("order") OrderEntity order);

    Department getGroupId(@Param("department") String department);

    int beMainGuard(@Param("staffEntity") StaffEntity staffEntity);

    int beMinorGuard(@Param("staffEntity") StaffEntity staffEntity);


}
